@extends('admin.base.index')

@section('content')
	<div class='block-area'>
		<h3 class="block-title">父类添加</h3>
		@if (count($errors) > 0)
		    <div class="alert alert-danger">
		        <ul>
		            @foreach ($errors->all() as $error)
		                <li>{{ $error }}</li>
		            @endforeach
		        </ul>
		    </div>
		@endif
		<form action="/admin/type" method='post'>
			{{ csrf_field() }}
			<div class='row'>
				<div class="col-lg-4">
					<input name='name' class="form-control m-b-10" placeholder="--请输入父类--" type="text">
				</div>
				<div class="col-lg-4">
					<input name='path' class="form-control m-b-10" placeholder=".col-lg-2" type="hidden"value='0'>
				</div>
				<div class="col-lg-4">
					<input name='upid' class="form-control m-b-10" placeholder=".col-lg-2" type="hidden"value='0'>
				</div>
				<div class='row'>
					<div class='col-sm-12'>
						<input type='submit' class='btn' value='添加'>
					</div>
				</div>
			</div>
		</form>
	</div>
@endsection